package cn.hl.org.domain;

import cn.hl.basic.domain.BaseDomain;
import cn.hl.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类：员工
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    /** 员工名称 */
    private String username;
    /** 员工电话 */
    private String phone;
    /** 员工邮箱 */
    private String email;
    /** 盐值 */
    private String salt;
    /** 密码 */
    private String password;
    /** 年龄 */
    private Integer age;
    /** 员工状态 */
    private Integer state;
    /** 所属部门ID */
    private Long department_id;
    private Department department;
    /** 登录信息ID */
    private Long logininfo_id;
    /** 店铺ID */
    private Long shop_id;
    private Shop shop;

    // 方便从中间表中为当前员工添加角色
    private Long role_id;
    private Role role;

}
